package com.ck567.practice.reflex.reflexModle;

/**
 * @author wuhao
 * @date 2021/1/8 9:51
 */
public class ReflexModle extends ReflexFatherModle implements ReflexInterf{
    //属性
    private String name;
    private String gender;

    //public 方法
    public String publicMethod(){
        System.out.println("调用了ReflexModle的public方法");
        return "publicMethod()";
    }
    //private 方法
    private String privateMethod(){
        System.out.println("调用了ReflexModle的private方法");
        return "privateMethod()";
    }

    @Override
    public String reflexinterf() {
        System.out.println("调用了Reflex的implements方法");
        return "implementsMethod()";
    }

    private String setName(){
        return this.name;
    }
}
